package cn.edu.lnsf.view;

import cn.edu.lnsf.controller.CustomersController;

import java.util.Scanner;

import cn.edu.lnsf.controller.BookRoomController;
import cn.edu.lnsf.controller.CustomersController;
import cn.edu.lnsf.controller.OnlineCsController;
import cn.edu.lnsf.controller.OrdersController;
import cn.edu.lnsf.controller.UserController;
import cn.edu.lnsf.dbutils.OrderFactory;
import cn.edu.lnsf.model.Orders;


public class KingView2 {
	
	public static void main(String[] args) {
		OnlineCsController oc = new OnlineCsController();
		Scanner scanner = new Scanner(System.in);
		BookRoomController bookroom = new BookRoomController();
		UserController user = new UserController();
		CustomersController cs = new CustomersController();	
		System.out.println();
		System.out.println("\t\t\t\t❤☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆๑۩۞۩๑☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆❤ ");
		System.out.println();
		System.out.println("\t\t\t\t❤                                                                                        ♪♪ 欢迎来到枫叶酒家  ♪♪                               ❤");
		System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t✿我们仨小组✿");
		System.out.println("\t\t\t\t❤☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆❤");
		
		int choose = 1;
		while(choose!=0){
			System.out.println();
			System.out.println();
			System.out.println("\t\t\t\t\t\t\t☆☆☆☆☆☆☆☆☆请选择预定方式☆☆☆☆☆☆☆☆☆");
			System.out.println();
			System.out.println("\t\t\t\t\t\t\t☆  1、网上预订     2、前台预订     0、退出  ☆");
			System.out.println();
			System.out.println("\t\t\t\t\t\t\t☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆");
			System.out.println();
			System.out.print("\t\t\t\t❤请输入数字：");
			choose = scanner.nextInt();
			switch(choose){
				case 1:					
					System.out.println();
					oc.insertintofoCustomers();
					break;
				case 2:
					System.out.println("\t\t\t\t\t\t☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆前台预定☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆");
					int a = 1;
					while(a!=0){
						System.out.println();
						System.out.println("\t\t\t\t\t\t\t❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤");
						System.out.println();
						System.out.println("\t\t\t\t\t\t\t❤   1、用户登录     2、用户注册    0、退出  ❤");
						System.out.println();
						System.out.println("\t\t\t\t\t\t\t❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤");
						System.out.println();
						System.out.print("\t\t\t\t❤请输入数字：");
						int b = scanner.nextInt();
						switch(b){
						case 1:user.login();
							break;
						case 2:user.register();
							break;
						case 0:a=0;
							break;
						default:
							System.out.println("\t\t\t\t\t\t\t\t      ✪       没有此项选择！请重新选择!    ✪");					
							break;
						}						
					}										
					break;
				case 0:
					break;
				default:
					System.out.println("\t\t\t\t\t\t\t\t      ✪       没有此项选择！请重新选择!    ✪");					
					break;
			}	
		}
		System.out.println();
		System.out.println();
		System.out.println("\t\t\t\t\t\t\t\t      ✪       退出成功！     ✪");
		System.out.println();
		System.out.println("\t\t\t\t\t\t\t\t๑۩۞۩๑酒店管理系统๑۩۞۩๑ ");
		System.out.println();
		System.out.println("\t\t\t\t\t\t\t                 ❤   ♜冯辉   ♚黄海芳  ♛曾雯珊  ❤     ");
		
		
	}
}
